﻿

using System;
using System.ServiceModel;
using System.Runtime.Serialization;

using WCFModel;
using WCFContract;

namespace WCFService
{
    
    public class TeacherService : ITeacherService
    {
        public Teacher GetTeacherNameWithId(Teacher teacher)
        {
            return GetTeacher(teacher.Id);
        }

        public Teacher GetTeacherWithId(Teacher teacher)
        {
            return GetTeacher(teacher.Id);
        }

        private Teacher GetTeacher(Int32 id)
        {
            return new Teacher() {  Id = id, Name = "asura", Age = 28, Teach = "数学", AppId = "1", SeeeionId = "2"};
        }
    }

}
